package com.heima.apis.admin;

import com.heima.model.admin.dtos.AuthDto;
import com.heima.model.common.dtos.ResponseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

/**
 * @author HYK
 * @date 2022/10/24
 */
@FeignClient(value = "leadnews-user")
public interface IUserClient {

    /**
     * 查询用户审核列表
     *
     * @param dto dto
     * @return {@link ResponseResult}
     */
    @PostMapping("/api/v1/auth/list")
    ResponseResult list(@RequestBody AuthDto dto);

    /**
     * 身份审核失败
     *
     * @param dto dto
     * @return {@link ResponseResult}
     */
    @PostMapping("/api/v1/auth/authFail")
    ResponseResult authFail(@RequestBody AuthDto dto);

    /**
     * 身份审核成功
     *
     * @param dto dto
     * @return {@link ResponseResult}
     */
    @PostMapping("/api/v1/auth/authPass")
    ResponseResult authPass(@RequestBody AuthDto dto);

}
